<div class="pa clearfix">
  <div class="span-p70 colborder">
    <h3>办公楼列表</h3>
    <hr/>
    <div>
      <table>
        <tr>
          <th>Id</th>
          <th>办公楼名称</th>
          <th>地址</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
        <% @buildings.each do |building| %>
        <tr>
          <td><%= building.id %></td>
          <td><%= building.name %></td>
          <td><%= building.address %></td>
          <td><%= building.status_show %></td>
          <td>
            <%= link_to '编辑', "/buildings/edit/#{building.id}" %> |
            <%= link_to '删除', "/buildings/delete/#{building.id}", :confirm => '你确认要删除吗？' %>
          </td>
        </tr>
        <% end %>
      </table>
      <div class="c666">
        <%= will_paginate @buildings %>
      </div>
    </div>
  </div>
  <div class="span-5 last">
    <%= render 'layouts/admin/users_sidebar' %>
  </div>
</div>